import { api } from './request'

const requestApi = {
  queryPortNameList: `/common/queryPortNameList`, // 港口名称查询
  queryHolderNameList: `/common/queryHolderNameList`, // 持箱人名称查询
  queryContainerTypeList: `/common/queryContainerTypeList`, // 箱型查询
  queryContainerFlowList: `/container/queryContainerFlowList`, // 集装箱列表查询
  editContainerFlowInfo: `/container/editContainerFlowInfo`, // 集装箱编辑
  addContainerRepairWash: `/container/addContainerRepairWash`, // 上报修洗箱
  queryContainerRepairWashList: `/container/queryContainerRepairWashList`, // 修洗箱列表查询
  queryCustNameList: `/common/queryCustNameList`, // 结算对象名称查询
  completeContainerRepairWash: `/container/completeContainerRepairWash`, // 完成修洗箱
  removeContainerRepairWash: `/container/removeContainerRepairWash`, // 移出修洗箱
  queryEmptyContainerOutList: `/container/queryEmptyContainerOutList`, // 空箱调出列表
  queryOrderInfoList: `/container/queryContainerHolderList`, // 持箱人列表查询
  addContainerHolder: `/container/addContainerHolder`, // 新增持箱人
  editContainerHolder: `/container/editContainerHolder`, // 修改持箱人

  getPortContainerQuantity: `/container/getPortContainerQuantity`, // 各港口箱量查询
  getShipCompanyContainerQuantity: `/container/getShipCompanyContainerQuantity`, // 船公司箱量查询
  getPortContainerStatus: `/container/getPortContainerStatus` // 港口箱况箱量查询
}
export default requestApi

export const queryPortNameList = (data) => api(requestApi.queryPortNameList, data)
export const queryHolderNameList = (data) => api(requestApi.queryHolderNameList, data)
export const queryContainerTypeList = (data) => api(requestApi.queryContainerTypeList, data)
export const queryContainerFlowList = (data) => api(requestApi.queryContainerFlowList, data)
export const editContainerFlowInfo = (data) => api(requestApi.editContainerFlowInfo, data)
export const addContainerRepairWash = (data) => api(requestApi.addContainerRepairWash, data)
export const queryContainerRepairWashList = (data) => api(requestApi.queryContainerRepairWashList, data)
export const queryCustNameList = (data) => api(requestApi.queryCustNameList, data)
export const completeContainerRepairWash = (data) => api(requestApi.completeContainerRepairWash, data)
export const removeContainerRepairWash = (data) => api(requestApi.removeContainerRepairWash, data)
export const queryEmptyContainerOutList = (data) => api(requestApi.queryEmptyContainerOutList, data)
export const queryOrderInfoList = (data) => api(requestApi.queryOrderInfoList, data)
export const addContainerHolder = (data) => api(requestApi.addContainerHolder, data)
export const editContainerHolder = (data) => api(requestApi.editContainerHolder, data)

export const getPortContainerQuantity = (data) => api(requestApi.getPortContainerQuantity, data)
export const getShipCompanyContainerQuantity = (data) => api(requestApi.getShipCompanyContainerQuantity, data)
export const getPortContainerStatus = (data) => api(requestApi.getPortContainerStatus, data)
